package com;

import com.app.MyRouter;

import jkoa.core.App;
import jkoa.middleware.MySqlMiddleware;
import jkoa.middleware.NettyMiddleware;
import jkoa.middleware.RedisMiddleware;
import jkoa.middleware.RouterMiddleware;

public class MyApp {

	public static void main(String[] args) {

		App app = App.me();

		app.use(new MySqlMiddleware());
		app.use(new RedisMiddleware());
		app.use(new MyRouter());

//		app.use(new NettyMiddleware());
//		RouterMiddleware router = new RouterMiddleware();

//		app.use(router);
		app.use(new NettyMiddleware());

	}
}
